package com.smile.model.request;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 添加角色request类
 * @author 宁海博
 */
@Data
@ToString
public class AddRoleRequest implements Serializable {

    @NotBlank(message = "角色名不能为空")
    private String roleName;



    @NotNull(message = "排序字段不能为空")
    private Integer sort;

    @NotNull(message = "状态字段不能为空")
    private Integer status;

    @NotEmpty(message = "菜单权限不能为空")
    private List<Long> menuIds;

    @NotBlank(message = "角色值不能为空")
    private String roleValue;

}
